package com.yc.storage.service;

import com.qiniu.common.QiniuException;

import java.io.File;
import java.io.InputStream;

public interface IQiniuService {

    boolean uploadFile(File file, String fileName) throws QiniuException;

    boolean uploadFile(InputStream inputStream, String fileName) throws QiniuException;

    boolean delete(String key) throws QiniuException;

    boolean moveFile(String fromKey, String toKey) throws QiniuException;

    boolean sendCaptchaMessage(String[] phones, String captcha);

    String getUploadToken();
}
